﻿using FluentMigrator;

namespace Budget.DataBase.Migrations
{
    [Migration(7)]
    public class M007_CreateIncomeOrderTable : Migration
    {
        private const string TABLE_NAME = "IncomeOrders";

        public override void Up()
        {
            Create.Table(TABLE_NAME)
                .WithKeyColumn()
                .WithTimeStamps()
                .WithColumn("Amount").AsDecimal(10, 2).NotNullable();
        }

        public override void Down()
        {
            Delete.Table(TABLE_NAME);
        }
    }
}